<template>
  <div class="box">
    <div class="item_wrap" v-for="(item, index) in list" :key="index">
      <div ref="scrollDiv" @mousewheel="MouseWheel($event)">
        <div class="item_xx">
          <div class="tu">
            <img :src="item.tu" alt="" />
          </div>
          <div class="txt">
            <span>{{ item.txt }}</span>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "JindXuanxiang",

  data() {
    return {
      list: [
        {
          tu: require("../assets/logo.png"),
          txt: "时令水果",
        },
        {
          tu: require("../assets/logo.png"),
          txt: "新鲜蔬菜",
        },
        {
          tu: require("../assets/logo.png"),
          txt: "海鲜水产",
        },
        {
          tu: require("../assets/logo.png"),
          txt: "肉禽蛋品",
        },
        {
          tu: require("../assets/logo.png"),
          txt: "食品干货",
        },
        {
          tu: require("../assets/logo.png"),
          txt: "美妆个护",
        },
        {
          tu: require("../assets/logo.png"),
          txt: "母婴百货",
        },
        {
          tu: require("../assets/logo.png"),
          txt: "保健滋补",
        },
        {
          tu: require("../assets/logo.png"),
          txt: "中外名酒",
        },
        {
          tu: require("../assets/logo.png"),
          txt: "彩妆时尚",
        },
      ],
    };
  },

  mounted() {},

  methods: {},
};
</script>

<style scoped>
.box {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.item_wrap {
  display: flex;
  justify-content: space-between;
}

img {
  width: 60%;
  height: 60%;
}

.tu {
  width: 130px;
  height: 130px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.txt {
  text-align: center;
  font-size: 24px;
}
</style>